import axios from '../http/axios'

/*  登录 */
export const apiPostSignIn = params => {
  return axios.post('user/login', params)
}

export const apiPostChangePassword = params => {
  return axios.put('/user/change-password', params)
}

/* 获取注册状态 */
export const apiGetRegisterStatus = phone => {
  return axios.get('/user/register-status', { params: phone })
}

/* 注册 */
export const apiPostRegister = params => {
  return axios.post('/user/register', params)
}
